#ifndef GRID_H
#define GRID_H

#include <QWidget>
#include <QPushButton>
#include <QEvent>
#include <QMouseEvent>
class grid : public QPushButton
{
    Q_OBJECT
public:
    int posx;
    int posy;
    int type;//0--Mine  1--Empty
    int nowtype;//0--无需清理/已清理  1--待清理
    bool finished;//true--游戏结束  禁用按钮
    bool marked;//true--已被右键标记
    grid(int x,int y,int type);
    void mouseDoubleClickEvent(QMouseEvent * event);
signals:
    void change_num();
public slots:
};

#endif // GRID_H
